﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="DangTinKhuyenMai.aspx.cs" Inherits="MasterPageGroupF3.WebForm6" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="clsmenuul">
        <li><a href="index.aspx">GIÁ TỐT HÔM NAY </a></li>
        <li><a href="GiaTotGanDay.aspx">GIÁ TỐT GẦN ĐÂY</a> </li>
        <li><a href="GiaTotSapToi.aspx">GIÁ TỐT SẮP TỚI</a> </li>
         <% if (Session["Provider"] != null)
            {%>
                <li class="active"><a href="DangTinKhuyenMai.aspx">ĐĂNG TIN KHUYẾN MÃI</a> </li> 
                 <li><a href="DanhSachDonDatHang.aspx">DS ĐƠN ĐẶT HÀNG</a> </li>
           <%}
            if (Session["UserName"] != null)
            {%>
                <li><a href="LichSuMuaHang.aspx">LỊCH SỬ MUA HÀNG</a> </li> 
                 <li><a href="TinhTrangDonHang.aspx">TÌNH TRẠNG ĐƠN HÀNG</a> </li>
            <%} %>
        <li><a href="ThaoLuan.aspx">THẢO LUẬN</a> </li>
        <li><a href="TroGiup.aspx">TRỢ GIÚP</a> </li>        
    </ul>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">        
    <asp:Wizard ID="Wizard1" runat="server" Height="420px" Visible="True" 
        Width="679px" 
      onfinishbuttonclick="Wizard1_FinishButtonClick" 
         Font-Bold="True" Font-Size="14px" DisplaySideBar="False">
        <FinishCompleteButtonStyle CssClass="btnGui" />
        <FinishPreviousButtonStyle CssClass="btnGui" />
        <StartNextButtonStyle CssClass="btnGui" />
        <StepNextButtonStyle CssClass="btnGui" />
        <StepPreviousButtonStyle CssClass="btnGui" />
        <WizardSteps>
           
        <asp:WizardStep ID="WizardStep1" runat="server" Title="Bước 1">
        <div class="leftboxtop">
            <img src="../skin/frontend/default/inspire-blue/images/contenttop.png" width="706" height="13"
                alt="2columns-right" />
        </div>        
        <div class="contpad clearfix">            
            <div class="div_LMainInfo" style="margin-top: 5px; height: 588px;">
                <p class="ptitleDN">
                    <strong class="strDN">Đăng tin khuyến mãi</strong></p>                    
                <div style="position:relative;
	width:689px;">
                    <div class="div_Company">
                        <div class="div_bodyCom">
                            <div class="div_BodyDK div_bodyDN" id="divSignUp">
                                <ul class="ulDangKy">
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Tên sản phẩm:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                                    ControlToValidate="TenSP" ErrorMessage="Vui lòng điền thông tin"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="TenSP" runat="server" Width="310px" Height="20px"></asp:TextBox>
                                            </div>                                        
                                    </li>
                                    <li style="height:115px">
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Thông tin sản phẩm:</p> 
                                             <div style="width: 310px; height: 100px; position: relative; float: left; padding-top:1px; left: 0px;">                                                
                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                                     ControlToValidate="ThongTinSP" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                                                 <asp:TextBox ID="ThongTinSP" runat="server" TextMode="MultiLine" Width="310px" 
                                                     Height="100px" OnTextChanged="ThongTinSP_TextChanged"></asp:TextBox>
                                            </div>                                                                                                                                             
                                    </li>
                                    <li style="height:115px">
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Điểm nổi bật:</p> 
                                             <div style="width: 310px; height: 100px; position: relative; float: left; padding-top:1px; left: 0px;">                                                
                                                 <asp:TextBox ID="DiemNoiBat" runat="server" TextMode="MultiLine" Width="310px" Height="100px"></asp:TextBox>
                                            </div>                                                                                                                                             
                                    </li>
                                    
                                    <li style="height:115px">
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Điều kiện:</p> 
                                             <div style="width: 310px; height: 100px; position: relative; float: left; padding-top:1px; left: 0px;">                                                
                                                 <asp:TextBox ID="DieuKien" runat="server" TextMode="MultiLine" Width="310px" Height="100px"></asp:TextBox>
                                            </div>                                                                                                                                             
                                    </li>
                                    
                                    <li style="height:115px">
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Slogan:</p> 
                                             <div style="width: 310px; height: 100px; position: relative; float: left; padding-top:1px; left: 0px;">                                                
                                                 <asp:TextBox ID="Slogan" runat="server" TextMode="MultiLine" Width="310px" Height="100px"></asp:TextBox>
                                            </div>                                                                                                                                             
                                    </li>                                                                                                                                              
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>                
            </div>
        </div>                
        <img src="../skin/frontend/default/inspire-blue/images/contentbottom.gif" width="706"
            height="10" alt="contentbottom" />
            </asp:WizardStep>
        <%--    Buoc 2--%>
             <asp:WizardStep ID="WizardStep2" runat="server" Title="Bước 2">
            <div class="leftboxtop">
            <img src="../skin/frontend/default/inspire-blue/images/contenttop.png" width="706" height="13"
                alt="2columns-right" />
        </div>        
        <div class="contpad clearfix">            
            <div class="div_LMainInfo" style="margin-top: 5px; height: 486px;">                                
                <div style="position:relative;
	width:689px;">
                    <div class="div_Company">
                        <div class="div_bodyCom">
                            <div class="div_BodyDK div_bodyDN" id="div1">
                                <ul class="ulDangKy">
                                <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>city:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:DropDownList ID="City" runat="server" 
                                                    DataSourceID="LinqDataSource1" DataTextField="NAME" DataValueField="IDCITY" 
                                                    Height="16px" Width="310px">
                                                </asp:DropDownList>
                                                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                                                    ContextTypeName="DTO.DataClassesNHOMMUADataContext" EntityTypeName="" 
                                                    Select="new (NAME, IDCITY)" TableName="CITies">
                                                </asp:LinqDataSource>
                                            </div>                                        
                                    </li>      
                                    
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Giá gốc:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                    ControlToValidate="GiaGoc" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="GiaGoc"
ErrorMessage="Please Enter Only Numbers"
 ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
                                                <asp:TextBox ID="GiaGoc" runat="server" Width="310px" Height="20px" 
                                                  ></asp:TextBox>
                                            </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Tỷ lệ giảm(%):</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                    ControlToValidate="TiLeGiam" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TiLeGiam"
ErrorMessage="Please Enter Only Numbers" 
 ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
                                                <asp:TextBox ID="TiLeGiam" runat="server" Width="310px" Height="20px"></asp:TextBox>
                                            </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Số lượng tối thiểu:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                    ControlToValidate="SLToiThieu" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="SLToiThieu"
ErrorMessage="Please Enter Only Numbers"  ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
                                                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                                    ControlToValidate="SLToiThieu" ErrorMessage="Sl phải lớn hơn 0"></asp:CustomValidator>
                                                <asp:TextBox ID="SLToiThieu" runat="server" Width="310px" Height="20px"></asp:TextBox>
                                            </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Số lượng tối đa:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                    ControlToValidate="SLToiDa" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="SLToiDa"
ErrorMessage="Please Enter Only Numbers"  ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
                                                <asp:TextBox ID="SLToiDa" runat="server" Width="310px" Height="20px"></asp:TextBox>
                                            </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Thởi gian bắt đầu:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                    ControlToValidate="TGBatDau" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="TGBatDau" runat="server" Width="310px" Height="20px"></asp:TextBox>(dd/mm//yyyy)
                                            </div>                                        
                                    </li>
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Thời gian Kết thúc:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                                    ControlToValidate="TGKetThuc" ErrorMessage="Thông tin bắt buộc"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="TGKetThuc" runat="server" Width="310px" Height="20px"></asp:TextBox>(dd//mm/yyyy)
                                            </div>                                        
                                    </li>    
                                    <li>
                                        <p class="p_txtDK">
                                            <span class="colorRed">*</span>Up hình:</p>
                                            <div style="width: 310px; height: 20px; position: relative; float: left; padding-top:1px; left: 0px;">
                                                <asp:FileUpload ID="FileUpload" runat="server" Width="221px" Height="20px" />
                                                <asp:Button ID="bt_Upload" runat="server" OnClick="Button1_Click" Text="Upload" Width="70" Height="30" ForeColor="Blue" Font-Size="Medium"  BackColor="#6699FF" BorderColor="#000099" />
                                            </div>                                        
                                        <asp:Label ID="lb_thongbao" runat="server" Font-Bold="True" Font-Size="Medium" 
                                            ForeColor="#CCCCFF"></asp:Label>
                                    </li>                                                                                                                                         
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>                
            </div>
        </div>                
        <img src="../skin/frontend/default/inspire-blue/images/contentbottom.gif" width="706"
            height="10" alt="contentbottom" />
            
            
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>     
</asp:Content>
